package com.funkyfurrymonkey.graphs;
import openfl.display.BitmapData;
import openfl.display.Shape;
import openfl.geom.Point;

/**
 * ...
 * @author Marcos Martinez
 */
class CreateBasics
{

	public function new() 
	{
		
	}
	
	public static function Square(  cProp:SquareProps):BitmapData
	{
		var cShape:Shape = new Shape();
		cShape.graphics.lineStyle(cProp.m_nLineThick, cProp.m_nLineColor, cProp.m_nLineAlpha);
		cShape.graphics.lineTo(cProp.m_nWidht, 0);
		cShape.graphics.lineTo(cProp.m_nWidht,cProp.m_nHeight);
		cShape.graphics.lineTo(0, cProp.m_nHeight);
		cShape.graphics.lineTo(0, 0);	
		var bd:BitmapData = new BitmapData(Math.ceil(cShape.width), Math.ceil(cShape.height) + 1, cProp.m_bTransparent, cProp.m_nFillColor);
		bd.draw( cShape );
		return bd;
	}
	
}